package com.zcc.demo01;

public class Proxy {
    private Host host;
    public Proxy(){}
    public Proxy(Host host) {
        this.host = host;
    }

    public void rent(){
        host.rent();
        seeHouse();
        heTong();
        zhongJieFei();
    }

    public void seeHouse(){
        System.out.println("中介看房");
    }

    public void heTong(){
        System.out.println("签合同");
    }

    public void zhongJieFei(){
        System.out.println("中介费");
    }
}
